using System.Collections.ObjectModel;

namespace WPFPractice.UserControls.DynamicColumnTable
{
	/// <summary>
	/// 行数据
	/// </summary>
	public class TableRow : TableRowColBase
	{
		public TableRow() : base(RowColType.Row) { }

		/// <summary>
		/// 构造
		/// </summary>
		/// <param name="header">标题，默认会同步设置 Tag</param>
		public TableRow(string header) : base(RowColType.Row, header)
		{
			Tag = header;
		}

		/// <summary>
		/// 构造
		/// </summary>
		/// <param name="header">标题</param>
		/// <param name="tag">标识</param>
		public TableRow(string header, string tag) : base(RowColType.Row, header)
		{
			Tag = tag;
		}

		/// <summary>
		/// 单元格
		/// </summary>
		public ObservableCollection<TableCell> Cells { set; get; } = new();
	}
}
